
function itstock_orderitem_save() {
    var item_id = settings_current_id;
    settings_current_id = "";
    var orderdetail_id = G('orderitem');
    if (orderdetail_id) {
        settings_current_id = orderdetail_id;
    }
    orderdetail_id = itstock_settings_save('orderdetail', 'orderitem', false);
    if (orderdetail_id) {
        E('orderdetail_id').value = orderdetail_id;
        settings_current_id = item_id;
        itstock_settings_save('hardware');
    }
}
